package life.majiang.community.exception;/**
 * @author ae
 * @date 2021-10-24 19:11
 */

/**
 * @description: TODO
 * @author ae
 * @data 2021/10/24 19:11
 * @version 1.0
 */
public class CustomizeException extends RuntimeException{
    private String message;

    public CustomizeException(ICustomizeErrorCode errorCode){
        this.message = errorCode.getMessage();
    }

    public CustomizeException(String message) {
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
